package com.wjjun.basemvpvm.data.model;

/**
 * 支持分页的实体类
 * Created by 67535 on 2018/4/26.
 */

public class PageEntity<E> {

    private E entity;
    private int currentPage;
    private int totalPage;
    private int pageSize;

    public PageEntity(E entity, int currentPage, int totalPage, int pageSize) {
        this.entity = entity;
        this.currentPage = currentPage;
        this.totalPage = totalPage;
        this.pageSize = pageSize;
    }

    public PageEntity() {

    }

    public int getCurrentPage() {
        return currentPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public E getEntity() {
        return entity;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public void setEntity(E entity) {
        this.entity = entity;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
